<script type="text/javascript">
	var xoad_handler = <{$xoad_handler}>;
</script>
<div id="news_list_section" name="news_list_section">
All news: <br />
<table>
<tr>
<th> Time created: </th>
<th> Last modified:</th>
<th> Title: </th>
<th> Hide:  </th>
<th> Order: </th>
<th> Publish: </th>
<th> Action:</th>
</tr>
<{while $news_list->fetch()}>
<tr>
<td> <{$news_list->news_time}> </td>
<td> <{$news_list->news_modified}> </td>
<td> <{$news_list->news_title}> </td>
<td> <{$news_list->news_hide}> </td>
<td> <{$news_list->news_order}></td>
<td> <{$news_list->news_homepage}></td>
<{if $news_list->news_homepage}>
    <td> <a href="javascript:toggleNewsPublish(<{$news_list->news_id}>,<{$news_list->news_homepage}>)"> Unpublish </a></td>
<{else}>
    <td> <a href="javascript:toggleNewsPublish(<{$news_list->news_id}>,<{$news_list->news_homepage}>)"> Publish </a></td>
<{/if}>    
</tr>
<{/while}>
</table>
</div>